import type { AppState } from "./types";

export const getters = {
	// 获取布局类型
	layout: (state: AppState) => state.config.layout,

	// 获取导航模式
	navMode: (state: AppState) => state.config.navMode,

	// 是否固定头部
	isFixedHeader: (state: AppState) => state.config.fixedHeader,

	// 是否显示标签栏
	isShowTabs: (state: AppState) => state.config.showTabs,

	// 是否显示面包屑
	isShowBreadcrumb: (state: AppState) => state.config.showBreadcrumb,

	// 是否显示页脚
	isShowFooter: (state: AppState) => state.config.showFooter,

	// 是否开启页面切换动画
	isEnableTransition: (state: AppState) => state.config.enableTransition,

	// 是否开启页面加载进度条
	isEnableProgress: (state: AppState) => state.config.enableProgress,

	// 侧边栏是否收起
	isCollapsed: (state: AppState) => state.config.collapsed,
};
